<#import "../../layout.html" as c>
    <#import "../../list_layout.html" as list>
        <#assign alertList = []/>
        <@c.html title="提现记录列表">
        <!-- ================== 开始页面级CSS调用 ================== -->
        <link href="${pluginsRoot}bootstrap-wizard/css/bwizard.min.css" rel="stylesheet"/>
        <!-- 日历控件 -->
        <link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/WdatePicker.css" rel="stylesheet"/>
        <link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/default/datepicker.css" rel="stylesheet"/>
        <!-- ================== 结束页面级CSS调用 ================== -->
        <@list.html title="提现记录列表" subTitle="提现记录列表" alertList=alertList permi="sys:cash:save" addBtn=true searchHint="请输入用户姓名/真实姓名/用户手机进行搜索">

    <!-- 开始用户权限参数 -->
    <@shiro.hasPermission name="sys:cash:edit">
    <input type="hidden" id="editPermi" value="1"/>
    </@shiro.hasPermission>
    <@shiro.hasPermission name="sys:cash:del">
    <input type="hidden" id="delPermi" value="1"/>
    </@shiro.hasPermission>
    <@shiro.hasPermission name="sys:cash:verify">
    <input type="hidden" id="verifyPermi" value="1"/>
    </@shiro.hasPermission>
    <!-- 结束用户权限参数 -->

<!-- 开启资金变动模态窗口 -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"> 资金变动 <a class="btn btn-info btn-xs m-l-10" role="button" data-toggle="collapse" href="#OperationTipsAdd" aria-expanded="true" title="操作提示"> <i class="fa fa-exclamation"></i> &nbsp;提示 </a> </h4>
            </div>
            <div class="modal-body">
                <ul class="text-info p-b-15 p-l-15 collapse in" role="tabpanel" id="OperationTipsAdd">
                    <li class="m-b-3">增加资金:+金额，减少资金：-金额</li>
                </ul>
                <form id="editForm" autocomplete="off" action="${adminRoot}/invest/edit.json" method="post" data-parsley-validate="true">
                    <input type="hidden" id="investId" name="id"/>
                    <div class="form-group">
                        <label class="control-label">资金变动&nbsp;: </label>
                        <input type="text" class="form-control" name="investAccount" />
                    </div>
                </form>
            </div>
            <div class="modal-footer"> <a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a> <a href="javascript:;" class="submitBtn btn btn-primary" data-loading-text="Loading..." nc-ajax-submit-target="editForm" nc-ajax-submit>确认提交</a> </div>
        </div>
    </div>
</div>
<!-- 结束资金变动模态窗口 -->
<!-- 开启新增人工提现模态窗口 -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"> 提现 <a class="btn btn-info btn-xs m-l-10" role="button" data-toggle="collapse" href="#OperationTipAdd" aria-expanded="true" title="操作提示"> <i class="fa fa-exclamation"></i> &nbsp;提示 </a> </h4>
            </div>
            <div class="modal-body">
                <ul class="text-info p-b-15 p-l-15 collapse in" role="tabpanel" id="OperationTipAdd">
                    <li class="m-b-3">输入客户ID进行提现</li>
                </ul>
                <form id="addForm" class="form-horizontal form-bordered p-0" autocomplete="off" action="${adminRoot}cash/save.json" method="post" data-parsley-validate="true">
                    <input type="hidden"  name="id" value="" />
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">客户ID<i class="f-s-14 text-danger">*</i>&nbsp;: </label>
                        <div class="col-md-9 col-sm-8">
                        <input type="text" name="userId" class="form-control" placeholder="请输入客户ID" data-tip="tooltip" data-placement="auto" data-original-title="必填项" data-parsley-required="true" data-parsley-length="[0,20]"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">提现金额<i class="f-s-14 text-danger">*</i>&nbsp;: </label>
                        <div class="col-md-9 col-sm-8">
                        <input type="text" name="amount" class="form-control" placeholder="请输入提现金额" data-tip="tooltip" data-placement="auto" data-original-title="必填大于0的数字" data-parsley-required="true" data-parsley-length="[0,15]"
                               maxlength="15" autocomplete="off" onkeyup= "if(/[^\d.]/g.test(this.value)){this.value='';}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">流水号<i class="f-s-14 text-danger">*</i>&nbsp;: </label>
                        <div class="col-md-9 col-sm-8">
                        <input type="text" name="orderNo" class="form-control" placeholder="请输入流水号" data-tip="tooltip" data-placement="auto" data-original-title="必填大于0的数字。" data-parsley-required="true" data-parsley-length="[0,60]"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">备注(方式)<i class="f-s-14 text-danger">*</i>&nbsp;: </label>
                        <div class="col-md-9 col-sm-8">
                        <input type="text" name="remark" class="form-control" placeholder="请输入转账方式" data-tip="tooltip" data-placement="auto" data-parsley-length="[0,60]"/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer"> <a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a> <a href="javascript:;" class="btn btn-primary" data-loading-text="Loading..." nc-ajax-submit-target="addForm" nc-ajax-submit>确认提交</a> </div>
        </div>
    </div>
</div>
<!-- 结束新增人工提现模态窗口 -->

<!-- 开启提现审核模态窗口 -->
<div class="modal fade" id="verifyModal" tabindex="-1" role="dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"> 审核 <a class="btn btn-info btn-xs m-l-10" role="button" data-toggle="collapse" href="#OperationTipAdd" aria-expanded="true" title="操作提示"> <i class="fa fa-exclamation"></i> &nbsp;提示 </a> </h4>
            </div>
            <div class="modal-body">
                <form id="verifyForm"  class="form-horizontal form-bordered p-0" autocomplete="off" action="${adminRoot}cash/json/audit" method="post" data-parsley-validate="true">
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">姓名&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="realName" value="" class="form-control" autocomplete="off" data-tip="tooltip" data-placement="auto" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">申请金额&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="amount" value="" class="form-control" autocomplete="off" data-tip="tooltip" data-placement="auto" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">银行名称&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="bankName" value="" class="form-control"  autocomplete="off" data-tip="tooltip" data-placement="auto" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">银行卡号&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="bankNo" value="" class="form-control"  autocomplete="off" data-tip="tooltip" data-placement="auto" readonly="true"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">审核&nbsp;*: </label>
                        <div class="col-md-9 col-sm-8">
                            <input type="checkbox" class="status" autocomplete="off"
                                   data-input-name="auditStatus"
                                   data-size="small"
                                   data-on-color="primary"
                                   data-on-text="通过"
                                   data-off-text="不通过"
                                   data-input-true="1"
                                   data-input-false="2"
                                   checked/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">提现通道<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-10 col-sm-8">
                            <select  name="channel" id ="channel" class="form-control" data-parsley-required="true" style="width: 395px">
                                <option value ="1">连连代付</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">审核备注<i class="f-s-14 text-danger">*</i>&nbsp;: </label>
                        <div class="col-md-9 col-sm-8">
                            <textarea id="remark" name="remark" class="form-control" rows="5" placeholder="请输入审核备注信息..." autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容小于255个字。"  maxlength="255" data-parsley-required="true"></textarea>
                        </div>
                    </div>
                    <input type="hidden" name="id">
                    <input type="hidden" name="channel" value="1">
                </form>
            </div>
            <div class="modal-footer"> <a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a> <a href="javascript:;" class="btn btn-primary" data-loading-text="Loading..." nc-ajax-submit-target="verifyForm" nc-ajax-submit>确认提交</a> </div>
        </div>
    </div>
</div>
<!-- 结束提现审核模态窗口 -->

</@list.html>
<!-- ================== 开始页面级JavaScrip调用 ================== -->
<script src="${pluginsRoot}bootstrap-wizard/js/bwizard.js"></script>
<!-- 表单checkbox项 -->
<script src="${pluginsRoot}bootstrap-switch/bootstrap-switch.min.js"></script>
<!-- 日历控件 -->
<script src="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/WdatePicker.js" defer="defer"></script>
<script src="${jsRoot}cash/cash.handle.js"></script>
<!-- ================== 结束页面级JavaScrip调用 ================== -->
</@c.html>
